#ifndef STRAP_H
#define STRAP_H

#include <QtCore>
#include <QtWidgets>
#include "rules.h"

class Strap : public QGraphicsItem
{
    friend class Data;
    friend class Cell;
    friend class Routing1;

    qreal strapHeight;
    qreal strapWidth;
    qreal *scale;

    QString strapType;

public:
    Strap();
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    QRectF boundingRect() const;

    void printDiffCifFormat(QTextStream *out);
    void printCoCifFormat(QTextStream *out);
    void printNpPpCifFormat(QTextStream *out);
};

#endif // STRAP_H
